package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年09月30日 20时11分23秒
 */
@Table(name = "e_book")
public class EBook extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_NAME = "name";
	public static final String FIELD_CREATEUSER = "createUser";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_PARENTID = "parentId";
	public static final String FIELD_CHILDSORT = "childSort";
	public static final String FIELD_ROLLCOUNT = "rollCount";
	public static final String FIELD_PARTNUMBER = "partNumber";
	public static final String FIELD_PROOFTIME = "proofTime";
	public static final String FIELD_EXTRA = "extra";
	public static final String FIELD_HASCONTENT = "hasContent";

	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_NAME = "name";
	public static final String COLUMN_CREATE_USER = "create_user";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_PARENT_ID = "parent_id";
	public static final String COLUMN_CHILD_SORT = "child_sort";
	public static final String COLUMN_ROLL_COUNT = "roll_count";
	public static final String COLUMN_PART_NUMBER = "part_number";
	public static final String COLUMN_PROOF_TIME = "proof_time";
	public static final String COLUMN_BOOK_ID = "book_id";
	public static final String COLUMN_HAS_CONTENT = "has_content";

	public static final String ORDER_CHILD_SORT_ASC = " child_sort asc ";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "name")
	private String name;
	@Column(name = "create_user")
	private Long createUser;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "parent_id")
	private Long parentId;
	@Column(name = "child_sort")
	private Double childSort;
	@Column(name = "roll_count")
	private String rollCount;
	@Column(name = "part_number")
	private String partNumber;
	@Column(name = "proof_time")
	private Date proofTime;
	@Column(name = "extra")
	private String extra;
	@Column(name = "has_content")
	private Integer hasContent;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 书籍名称
	 * 
	 * @return name - 书籍名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置 书籍名称
	 * 
	 * @param name
	 *            - 书籍名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取 创建者
	 * 
	 * @return createUser - 创建者
	 */
	public Long getCreateUser() {
		return createUser;
	}

	/**
	 * 设置 创建者
	 * 
	 * @param createUser
	 *            - 创建者
	 */
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 更新时间
	 * 
	 * @return updateTime - 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置 更新时间
	 * 
	 * @param updateTime
	 *            - 更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * 获取 父ID
	 * 
	 * @return parentId - 父ID
	 */
	public Long getParentId() {
		return parentId;
	}

	/**
	 * 设置 父ID
	 * 
	 * @param parentId
	 *            - 父ID
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Double getChildSort() {
		return childSort;
	}

	public void setChildSort(Double childSort) {
		this.childSort = childSort;
	}

	public String getRollCount() {
		return rollCount;
	}

	public void setRollCount(String rollCount) {
		this.rollCount = rollCount;
	}

	public String getPartNumber() {
		return partNumber;
	}

	public void setPartNumber(String partNumber) {
		this.partNumber = partNumber;
	}

	public Date getProofTime() {
		return proofTime;
	}

	public void setProofTime(Date proofTime) {
		this.proofTime = proofTime;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public Integer getHasContent() {
		return hasContent;
	}

	public void setHasContent(Integer hasContent) {
		this.hasContent = hasContent;
	}

}